from 有效三角形的个数alg import Solution

def run_tests():
    solution = Solution()
    
    test_cases = [
        [2, 2, 3, 4],
        [4, 2, 3, 4],
        [0, 1, 0],
        [3, 4, 5, 6, 7]
    ]
    
    for i, case in enumerate(test_cases):
        result = solution.triangleNumber(case)
        print(f"测试用例 {i+1}: {case}")
        print(f"结果: {result}\n")

if __name__ == "__main__":
  run_tests()